<extend name="Public/top"/>
<block name="body">
<div class="container">
	<div class="banner_1">
		<img src="__IMG__/banner_5.jpg">
	</div>
	<div class="zs_policy">
		<p>公司动态</p>
		<span>COMPANY DYNAMIC</span>
	</div>
	<div class="zs_content">
		<div class="zs_content_con clearfix">
			<div class="zs_content_r zs_content_center">
				<div class="zs_content_text">
					<ul class="clearfix">
					<if condition="!empty($newCompanys)">
					 <foreach name="newCompanys" item="vo" >
						<li class="zs_dynamic f-l">
						<a href="{:U('Index/detail')}&id={$vo['id']}">
							<div class="zs_news_img comanyList" data-id="{$vo['id']}">
								<img src="{:get_cover($vo['cover_id'],'path')}">
							</div>
							<div class="zs_news_text comanyList" data-id="{$vo['id']}">
								<i>NEW</i>
								<span>{$vo['title']}</span>
							</div>
						</a>
						</li>
					 </foreach>
					</if>
					</ul>
				</div>
			</div>
		</div>
		<div class="zs_content_con">
			<if condition="!empty($comanyList)">
			<div class="zs_dynamic_con_1">
			<foreach name="comanyList" item="vo" >
				<div class="zs_dynamic_text clearfix">
					<a href="{:U('Index/detail')}&id={$vo['id']}">
					<p class="zs_dynamic_text_1 f-l comanyList" data-id="{$vo['id']}"><i class="iconfont">&#xe65b;</i>{$vo['title']}</p>
					</a>
					<p class="zs_dynamic_text_2 f-l">【{$vo['create_time']|date="y-m-d",###}】</p>
				</div>
			</foreach>
			</div>
			<a href="{:U('Index/lists')}&category={$companys_category}"><div class="zs_dynamic_more" isclick="0" data-type="company">+ 查看更多</div></a>
			</if>
		</div>
	</div>
	

	<div class="zs_policy">
		<p>行业新闻</p>
		<span>INDUSTRY NEWS</span>
	</div>
	<div class="zs_content">
		<div class="zs_content_con clearfix">
			<div class="zs_content_r zs_content_center">
				<div class="zs_content_text">
					<ul class="clearfix">
				<if condition="!empty($newIndustrys)">
					<foreach name="newIndustrys" item="vo" >
						<li class="zs_dynamic f-l">
							<a href="{:U('Index/detail')}&id={$vo['id']}">
							<div class="zs_news_img industrys" data-id="{$vo['id']}">
								<img src="{:get_cover($vo['cover_id'],'path')}">
							</div>
							<div class="zs_news_text industrys" data-id="{$vo['id']}">
								<i>NEW</i>
								<span>{$vo['title']}</span>
							</div>
							</a>
						</li>
					</foreach>
				</if>
					</ul>
				</div>
			</div>
		</div>
		<div class="zs_content_con">
		<if condition="!empty($industrysList)">
			<div class="zs_dynamic_con_1">
			 <foreach name="industrysList" item="vo" >
				<div class="zs_dynamic_text clearfix">
					<a href="{:U('Index/detail')}&id={$vo.id}">
					<p class="zs_dynamic_text_1 f-l industrys" data-id="{$vo['id']}"><i class="iconfont">&#xe65b;</i>{$vo['title']}</p>
					</a>
					<p class="zs_dynamic_text_2 f-l">【{$vo['create_time']|date="y-m-d",###}】</p>
				</div>
			 </foreach>
			</div>
			<a href="{:U('Index/lists')}&category={$industrys_category}"><div class="zs_dynamic_more" isclick="0" data-type="industrys">+ 查看更多</div</a>
		</if>
		</div>
	</div>
</div>
<script type="text/javascript" src="__JS__/jquery-1.4.2.min.js"></script>
<script type="text/javascript">
$(document).ready(function(){
	$(".zs_dynamic_more").click(function(){
		var isclick=$(this).attr("isclick");
		var changHeight=$(this).siblings(".zs_dynamic_con_1");
		var index=changHeight.find(".zs_dynamic_text").length;
		var son_height=$(".zs_dynamic_text").height()+10;
		if(isclick == 0)
		{
			changHeight.animate({
				height:index*son_height+"px"
			},400)
			$(this).attr("isclick","1");
		}
		if(isclick == 1)
		{
			changHeight.animate({
				height:4*son_height+"px"
			},400)
			$(this).attr("isclick","0");
		}
	});
});
</script>
</block>